import store from '@/store'
import storage from '@/utils/storage'
import platform from '@/core/platform'

export default function CommFun() {
  // 当前运行的终端
  store.commit('SET_PLATFORM', platform)
  // 用户认证token
  store.commit('SET_TOKEN', storage.get("token"))
  // 当前用户ID
  store.commit('SET_USER_ID', storage.get("userId"))
  // 当前推荐人ID
  store.commit('SET_REFEREE_ID', storage.get("refereeId"))
}
